<extend name="Base:common" />
<block name="style">
<css href="__CSS__/login.css" />
</block>
<block name="script">
    <script>
    function dologin(){
         var phone = $('input[name=phone]').val();
         var password = $('input[name=password]').val();
         $.post('/Home/Login/doLogin',
                {
                    phone : phone,
                    password : password
                }, function(data) {
                    if (1 == data.status) {
                        window.location.href = '/Home/Index/index'
                    }
                });
     }
    </script>
</block>
<block name="body">
    <section class="login-page screen page t-center">
        <img class="logo-img" alt="" src="__IMG__/icon_logo.png"/>
        <img class="logo-text" alt="" src="__IMG__/icon_logo_text.png"/>

        <form action="doLogin" method="POST">
            <div class="input">
                <input name="phone"
                       type="tel"
                       placeholder="请输入手机号"/>
                <input name="password"
                       type="password"
                       placeholder="请输入密码"/>
            </div>

            <a class="submit" href="javascript:dologin();">登 录</a>
        </form>
        <ul class="list-inline register">
            <li><a href="{:U('Login/register')}">注册</a></li>
            <li>忘记密码?</li>
        </ul>
        <footer class="unit">
            古法创新科技发展有限公司
        </footer>
    </section>
</block>
